package file1;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Test3 {
    public static void main(String[] args) {
        try (OutputStream outputStream = new FileOutputStream("test/test.txt")) {
            outputStream.write('H');
            outputStream.write('e');
            outputStream.write('l');
            outputStream.write('l');
            outputStream.write('o');
            outputStream.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
